home *** CD-ROM | disk | FTP | other *** search
-
-
-
- (C) Copyright Ken Tucker 1991
-
- WHAT IS FORDOC ?
- ----------------
-
- FORDOC is an integrated set of programs to extract the names
- of symbols from FORTRAN source code and produce symbol tables
- suitable for inclusion in program documentation. One symbol
- table is produced for each FORTRAN module( PROGRAM,
- SUBROUTINE, or FUNCTION).
-
- The symbol tables identify local variables, variables in
- common (blank and labeled), external references, and other
- modules that call the target module. Common extensions to
- ANSI FORTRAN 77 are accepted; therefore, the FORTRAN source
- code may be from PC's, minicomputers, or mainframes. The
- names of common FORTRAN math library routines are excluded from
- the symbol table.
-
- FORDOC is intended to help FORTRAN programmers document their
- source code. FORDOC runs on IBM-compatible PC's running
- MS-DOS or PC-DOS. FORDOC will run on XT's, AT's, and PS2's.
-
- See the file READ.ME for information on becoming a registered
- user of FORDOC and information on other products available.
-
-
- HOW TO USE FORDOC
- -----------------
-
- INSTALLATION
- ------------
-
- The FORDOC distribution disk contains:
- FORDOC.EXE
- FORDOC2.EXE
- FORDOC3.EXE
- USER.DOC
- DEMO.RPT
- READ.ME
-
- The programs are not copy-protected. To install FORDOC, copy
- the contents of the distribution disk to a directory on your
- working disk.
-
- For example:
- rem create a directory on the working disk
- MD C:\FORDOC
- rem copy the FORDOC files to the working disk
- COPY A:\*.* C:\FORDOC
-
- FORDOC.EXE starts building the symbol table(s); it executes
- FORDOC2.EXE and FORDOC3.EXE. USER.DOC contains the user
- document that you are now reading. DEMO.RPT contains a sample
- symbol table. READ.ME contains ordering information and
- information on other products available.
-
-
-
- OPERATION
- ---------
-
- If you are using DOS 3.0 or higher, you can use a full
- pathname to execute the FORDOC programs. If you are using a
- version of DOS prior to 3.0, you should place the FORDOC
- directory on your PATH.
-
- The following examples assume that you are using DOS 3.0 and
- that FORDOC is installed in directory C:\FORDOC. Further, it
- is assumed that the FORTRAN source code is in directory
- C:\FSOURCE and that the symbol tables are to be placed in
- C:\FSOURCE\SYMBOLS.
-
- To create symbol tables for each of the modules in C:\FSOURCE,
- use the following commands:
-
- CD C:\FSOURCE\SYMBOLS
- C:\FORDOC\FORDOC C:\FSOURCE\*.FOR
-
- That's all there is to it. FORDOC will create a symbol table
- report file (modulename.RPT) for each of the FORTRAN modules
- in C:\FSOURCE. The symbol table report files will be created
- in the current working directory (C:\FSOURCE\SYMBOLS). The
- .RPT files may be incorporated into comments in the source
- code and/or included in documentation.
-
- Alternatively, FORDOC can be commanded to examine only one
- FORTRAN source file:
-
- CD C:\FSOURCE\SYMBOLS
- C:\FORDOC\FORDOC C:\FSOURCE\modulename.for
-
- In this case, FORDOC will only examine the source in the
- modulename.FOR file; however, all other symbol tables in the
- current working directory will be updated with current
- information as to which module calls which other module.
-
-
- FORDOC DETAILS
- --------------
-
- DEFAULTS AND LIMITS
- -------------------
-
- 1. Symbols may be up to 31 characters long. Symbols longer
- than 31 characters will be truncated.
-
- 2. Include files may be nested up to 30 levels deep.
-
- 3. The maximum number of symbols for any module is limited
- by the amount of available memory. With 450KB of
- available memory, over 6000 unique symbols per module can
- be handled.
-
-
-
- 4. Default lengths (in bytes) for types of variables are:
- REAL 4
- INTEGER 4
- CHARACTER 1
- LOGICAL 4
- COMPLEX 8
- The default lengths may be changed with command-line
- switches.
-
-
- COMMAND-LINE SWITCHES
- ---------------------
-
- If any command-line switches are used, they must be placed on
- the command line before the .FOR argument. For example:
-
- C:\FORDOC\FORDOC /N C:\FSOURCE\*.FOR
-
- Command-line switches may not be combined:
-
- C:\FORDOC\FORDOC /N /R8 C:\FSOURCE\*.FOR
- (correct)
- C:\FORDOC\FORDOC /NR8 C:\FSOURCE\*.FOR
- (incorrect)
-
- The command-line switches and their meanings are:
-
- /N Do not place a 'C' at the beginning of each
- line in the symbol table report.
-
- /Rn Use n as the default length for REAL
- variable type.
-
- /In Use n as the default length for INTEGER
- variable type.
-
- /Cn Use n as the default length for CHARACTER
- variable type.
-
- /Ln Use n as the default length for LOGICAL
- variable type.
-
- /Xn Use n as the default length for COMPLEX
- variable type.
-
- To make the default length for COMPLEX variables 8 bytes and
- the default length for INTEGER 2 bytes, the following command
- would be used:
-
- C:\FORDOC\FORDOC /X8 /I2 C:\FSOURCE\*.FOR
-
- (C) Copyright Ken Tucker 1991
-
- ----------------end-of-author's-documentation---------------
-
- Software Library Information:
-
- This disk copy provided as a service of
-
- Public (software) Library
-
- We are not the authors of this program, nor are we associated
- with the author in any way other than as a distributor of the
- program in accordance with the author's terms of distribution.
-
- Please direct shareware payments and specific questions about
- this program to the author of the program, whose name appears
- elsewhere in this documentation. If you have trouble getting
- in touch with the author, we will do whatever we can to help
- you with your questions. All programs have been tested and do
- run. To report problems, please use the form that is in the
- file PROBLEM.DOC on many of our disks or in other written for-
- mat with screen printouts, if possible. PsL cannot debug pro-
- programs over the telephone, though we can answer questions.
-
- Disks in the PsL are updated monthly, so if you did not get
- this disk directly from the PsL, you should be aware that the
- files in this set may no longer be the current versions. Also,
- if you got this disk from another vendor and are having prob-
- lems, be aware that some files may have become corrupted or
- lost by that vendor. Get a current, working disk from PsL.
-
- For a copy of the latest monthly software library newsletter
- and a list of the 3,000+ disks in the library, call or write
-
- Public (software) Library
- P.O.Box 35705 - F
- Houston, TX 77235-5705
-
- 1-800-2424-PSL
- MC/Visa/AmEx/Discover
-
- Outside of U.S. or in Texas
- or for general information,
- Call 1-713-524-6394
-
- PsL also has an outstanding
- catalog for the Macintosh.
-